package android.microblog;

import android.app.Activity;
import android.content.Intent;
import android.microblog.LoginActivity;
import android.microblog.R;
import android.microblog.Common.Util;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;

public class main extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		LinearLayout layout = (LinearLayout) findViewById(R.id.main_layout);
		Util.AutoBackground(this, layout, R.drawable.sinaweibo,
				R.drawable.sinaweibo_h);
		Button btnLogin = (Button) findViewById(R.id.btnLogin);
		btnLogin.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				Intent intent = new Intent(main.this,LoginActivity.class);
	        	startActivity(intent);
			}
		});
	}
}